package top.springcloud.ConfigServer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BaseController
 * @Description TODO
 * @Author 维康
 * @Date 2018/8/16 18:25
 * @Version 1.0
 **/
@RestController
public class BaseController {

    @Value("${server.port}")
    String port;

    @Value("${spring.application.name}")
    String appName;

    @RequestMapping(value = "/port")
    public String getPort(){
        return port;
    }

    @RequestMapping(value = "/appName")
    public String getZuulPath(){
        return appName;
    }
}
